﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace HZ.Supervise.Web.Secondphase
{
    public partial class Blacklist : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindList();
        }

        void BindList()
        {
            int t = 0;
            HZ.Supervise.IBLL.IBLL_PreWarning pre = HZ.Supervise.BLLFactory.IBLL_PreWarning();
            System.Data.DataTable dt = new System.Data.DataTable();
            string _values = HZ.Fun.CheckString(this.txtCompanyName.Text);

            dt = pre.GetBlackList(_values, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out t);
            AspNetPager1.RecordCount = t;
            gvwBlackList.DataSource = dt;
            gvwBlackList.DataBind();
        }


        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            BindList();
        }

        protected void btnQuery_Click(object sender, EventArgs e)
        {
            AspNetPager1.CurrentPageIndex = 1;
            BindList();
        }
    }
}
